package test;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;

import metier.Stage;
import dao.hbm.DAOStageHBM;


public class test {
	
	@Test
	public void testSave() throws Exception
	{
		DAOStageHBM dao = (DAOStageHBM) DAOStageHBM.getInstance();
		try{
			ArrayList<Stage> test = dao.loadAllValides(1);
			System.out.println(test);
			if (test.size()==0)
				fail();
		}
		catch (Exception e) {	
			e.printStackTrace();
			fail();
		}
	}
}